+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
+2001-03-15 HideToshi Tajima <tajima@happy>
+
+ * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
+ * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
+ * gtk/gtkentry.c (update_im_cursor_location):
+ * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
+ * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
+ set_cursor_pos to set_cursor_location in GtkInputContext class
+
Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkcellrenderer.h: Changed prototype to allow for getting
}
static void
-update_im_cursor_position (GtkEntry *entry)
+update_im_cursor_location (GtkEntry *entry)
{
GdkRectangle area;
gint strong_x;
area.width = area_width;
area.height = area_height;
- gtk_im_context_set_cursor_pos (entry->im_context, &area);
+ gtk_im_context_set_cursor_location (entry->im_context, &area);
}
static gboolean
entry->recompute_idle = FALSE;
- update_im_cursor_position (entry);
+ update_im_cursor_location (entry);
return FALSE;
}
/**
- * gtk_im_context_set_cursor_pos:
+ * gtk_im_context_set_cursor_location:
* @context: a #GtkIMContext
*
* Notify the input method that a change in cursor
* position has been made.
**/
void
-gtk_im_context_set_cursor_pos (GtkIMContext *context,
- GdkRectangle *area)
+gtk_im_context_set_cursor_location (GtkIMContext *context,
+ GdkRectangle *area)
{
GtkIMContextClass *klass;
g_return_if_fail (GTK_IS_IM_CONTEXT (context));
klass = GTK_IM_CONTEXT_GET_CLASS (context);
- if (klass->set_cursor_pos)
- klass->set_cursor_pos (context, area);
+ if (klass->set_cursor_location)
+ klass->set_cursor_location (context, area);
}
void (*focus_in) (GtkIMContext *context);
void (*focus_out) (GtkIMContext *context);
void (*reset) (GtkIMContext *context);
- void (*set_cursor_pos) (GtkIMContext *context,
- GdkRectangle *area);
+ void (*set_cursor_location) (GtkIMContext *context,
+ GdkRectangle *area);
};
GtkType gtk_im_context_get_type (void) G_GNUC_CONST;
void gtk_im_context_focus_in (GtkIMContext *context);
void gtk_im_context_focus_out (GtkIMContext *context);
void gtk_im_context_reset (GtkIMContext *context);
-void gtk_im_context_set_cursor_pos (GtkIMContext *context,
- GdkRectangle *area);
+void gtk_im_context_set_cursor_location (GtkIMContext *context,
+ GdkRectangle *area);
#ifdef __cplusplus
}
static void gtk_im_multicontext_focus_in (GtkIMContext *context);
static void gtk_im_multicontext_focus_out (GtkIMContext *context);
static void gtk_im_multicontext_reset (GtkIMContext *context);
-static void gtk_im_multicontext_set_cursor_pos (GtkIMContext *context,
+static void gtk_im_multicontext_set_cursor_location (GtkIMContext *context,
GdkRectangle *area);
void gtk_im_multicontext_preedit_start_cb (GtkIMContext *slave,
im_context_class->focus_in = gtk_im_multicontext_focus_in;
im_context_class->focus_out = gtk_im_multicontext_focus_out;
im_context_class->reset = gtk_im_multicontext_reset;
- im_context_class->set_cursor_pos = gtk_im_multicontext_set_cursor_pos;
+ im_context_class->set_cursor_location = gtk_im_multicontext_set_cursor_location;
gobject_class->finalize = gtk_im_multicontext_finalize;
}
}
static void
-gtk_im_multicontext_set_cursor_pos (GtkIMContext *context,
- GdkRectangle *area)
+gtk_im_multicontext_set_cursor_location (GtkIMContext *context,
+ GdkRectangle *area)
{
GtkIMMulticontext *multicontext = GTK_IM_MULTICONTEXT (context);
GtkIMContext *slave = gtk_im_multicontext_get_slave (multicontext);
if (slave)
- gtk_im_context_set_cursor_pos (slave, area);
+ gtk_im_context_set_cursor_location (slave, area);
}
void
static void gtk_im_context_xim_reset (GtkIMContext *context);
static void gtk_im_context_xim_focus_in (GtkIMContext *context);
static void gtk_im_context_xim_focus_out (GtkIMContext *context);
-static void gtk_im_context_xim_set_cursor_pos (GtkIMContext *context,
+static void gtk_im_context_xim_set_cursor_location (GtkIMContext *context,
GdkRectangle *area);
static void gtk_im_context_xim_get_preedit_string (GtkIMContext *context,
gchar **str,
im_context_class->get_preedit_string = gtk_im_context_xim_get_preedit_string;
im_context_class->focus_in = gtk_im_context_xim_focus_in;
im_context_class->focus_out = gtk_im_context_xim_focus_out;
- im_context_class->set_cursor_pos = gtk_im_context_xim_set_cursor_pos;
+ im_context_class->set_cursor_location = gtk_im_context_xim_set_cursor_location;
gobject_class->finalize = gtk_im_context_xim_finalize;
}
}
static void
-gtk_im_context_xim_set_cursor_pos (GtkIMContext *context,
- GdkRectangle *area)
+gtk_im_context_xim_set_cursor_location (GtkIMContext *context,
+ GdkRectangle *area)
{
GtkIMContextXIM *context_xim = GTK_IM_CONTEXT_XIM (context);
XIC ic = gtk_im_context_xim_get_ic (context_xim);